/**
 *  系统内全部的菜单和路由的定义。
 * @returns dynMenu系统内的全部菜单
 */
const mains = ()=>import("../page/mains")
const user = ()=>import("../page/user")
const layout = ()=>import("../page/layout")
const orderlist = ()=>import("../page/orderlist")
const dynMenu=[
  {
    path: 'sys',
    name:"系统菜单",
    component:layout,
    meta: { 
      require:false,
      name:"系统菜单",
     },
     children: [
      {
        path: 'user',
        name:"用户管理",
        component:user,
        meta:{
          require:false,
          name:"user"
        }
      },
      {
        path: 'mains',
        // name:"首页管理",
        name:"首页管理",
        component:mains,
        meta:{
          require:false,
          name:"mains"
        }
      },
    ],
  },
  {
    path: 'Order',
    name:"订单管理",
    component: layout,
    meta: { 
      require:false,
      name:"订单管理",
     },
     children: [
      {
        path: 'orderlist',
        name:"查询订单",
        component:orderlist,
        meta:{
          require:false,
          name:"orderlist"
        }
      }
    ],
  }
]

export default dynMenu;